Skip to content

feat: add :sort and :sort! commands to sort by current column#51

Open
shubham399 wants to merge 1 commit into
maaslalani:mainfrom
shubham399:main
Open

feat: add :sort and :sort! commands to sort by current column#51
shubham399 wants to merge 1 commit into
maaslalani:mainfrom
shubham399:main

Conversation

@shubham399

Copy link
Copy Markdown

PR Description:

Summary

  • New :sort command sorts data rows by the focused column ascending; :sort! sorts descending
  • Row 0 treated as header (excluded from sort); empty rows sink to bottom
  • Numeric values compared numerically, strings lexicographically
  • Sort is undoable via existing undo stack; marks file dirty

Optmized sorting
@shubham399

Copy link
Copy Markdown
Author

Hey @maaslalani , please review this when you get time and let me know if this can be merged

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