Skip to content

Ordered lists: sort enum items, drag rows - #247

Merged
kslysz merged 2 commits into
masterfrom
feature/enum-items-sort
Nov 17, 2026
Merged

kslysz merged 2 commits into
masterfrom
feature/enum-items-sort

Conversation

@kslysz

@kslysz kslysz commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Enum items (Settings → Enums → items dialog): a Sort items button (A↓Z icon) in the toolbar with Value: A → Z / Z → A and Text: A → Z / Z → A.

  • Sorts the items for good — it changes the saved order (the order of the list when editing data), like the move up/down arrows; saved with the enum as before.
  • Natural order: item2 before item10, Polish letters in place, case-insensitive; stable for equal values.

Dragging rows — in every table with Move up/down arrows a row can also be dragged onto another row (grab cursor, a line shows where it lands): enum items, columns and class properties (Columns dialog, Classes), properties of the rich filter / filter rules and tasks, task actions. Native HTML drag and drop (DraggableBodyRow, material-table passes the props on to the <tr>), no new dependency; off while a row is edited.

Column headers of these tables no longer sort only the view (it mixed up the order the arrows move in).

Checked locally (Vite on :3000 against the compose app): sort menu both directions, arrows after sorting, header click, dragging in the enum items and the columns dialog (drop simulated with DragEvents — the browser automation can't do a native drag); cancelled without saving.

… → A, natural order) that sorts the items for good; the column headers no longer sort only the view
…w (enum items, columns, class properties, filter and task properties, task actions); the column headers of these tables no longer sort only the view
@kslysz kslysz changed the title Enum items: sort menu Ordered lists: sort enum items, drag rows Nov 17, 2026
@kslysz
kslysz merged commit 3661c4f into master Nov 17, 2026
2 checks passed
@kslysz
kslysz deleted the feature/enum-items-sort branch November 17, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant