You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: SORT ON <field>[/D] TO <newtable> (#8) (#14)
* docs: SORT TO design spec (thin alias) (#8)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat: SORT ON <field>[/D] TO <newtable> (#8)
Writes a sorted copy of the active table to a new table. /D sorts
descending; the active SET FILTER is honoured. Errors when no table is
in use, the field is unknown, or the target already exists.
Thin alias over SQLite's CREATE TABLE AS SELECT ... ORDER BY — the new
table is a plain snapshot (inferred affinities, no source PK/constraints).
SORT is largely redundant given live indexes + ORDER BY; it exists for
dBASE III dialect fidelity.
Bumps version to 0.6.3; adds parser + integration tests, HELP text, and
README/CLAUDE command-table rows.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: mark SORT TO spec as implemented (#8)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,16 @@ Versions follow [Semantic Versioning](https://semver.org/) — minor bump per su
7
7
8
8
---
9
9
10
+
## [0.6.3] — 2026-06-24 — `SORT TO`
11
+
12
+
### Added
13
+
-**`SORT ON <field>[/D] TO <newtable>`** (#8) — writes a sorted copy of the active table to a new table. `/D` sorts descending (default ascending), and the active `SET FILTER` is honoured. Errors if no table is in use, the field doesn't exist, or the target table already exists.
14
+
15
+
### Notes
16
+
- Implemented as a thin alias over SQLite's `CREATE TABLE … AS SELECT … ORDER BY`. The new table is therefore a plain snapshot — column affinities are inferred and the source PK/constraints are **not** carried over. `SORT` is largely redundant given live indexes + `ORDER BY`; it exists for dBASE III dialect fidelity.
Copy file name to clipboardExpand all lines: CLAUDE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,6 +137,7 @@ WebBase-III supports **unlimited work areas** (no DOS 10-area limit). Cross-area
137
137
|`LIST INDEXES`| Print all indexes for current table with active marker |
138
138
|`SEEK <expr>`| Position record pointer at first index match |
139
139
|`FIND <string>`| Alias for SEEK (unquoted string — dBASE III legacy) |
140
+
|`SORT ON <field>[/D] TO <newtable>`| Sorted copy of the table into a new table (`/D` descending); honours active filter. Thin alias over `CREATE TABLE AS SELECT … ORDER BY`|
140
141
141
142
> Index expressions support built-in functions: `INDEX ON UPPER(lastname) TO BYUPPER`
0 commit comments