feat: add semantic sorting and shortcuts to list-installed#1079
Open
AshokThangavel wants to merge 8 commits intointersystems:mainfrom
Open
feat: add semantic sorting and shortcuts to list-installed#1079AshokThangavel wants to merge 8 commits intointersystems:mainfrom
AshokThangavel wants to merge 8 commits intointersystems:mainfrom
Conversation
- Implement -sort (-s) for name, date, and version. - Fix version collation using numeric $List segments (e.g., 0.10 > 0.2). - Add descending order support via -desc suffix (e.g., v-d, d-d). - Support power-user shortforms (n, d, v) for all sort modes. - Update help documentation with usage examples.
isc-dchui
requested changes
Mar 4, 2026
Collaborator
isc-dchui
left a comment
There was a problem hiding this comment.
Just a few minor things. Thanks for tackling this and all the other issues! I promise to actually get your changes merged once we've sorted out all this IPM regression instability. (We're almost there...)
Collaborator
|
@AshokThangavel I think you also need to pull from main here to resolve merge conflicts |
Contributor
Author
|
I’ve pulled the latest changes from main and resolved the conflicts in CHANGELOG.md. The new entry has been updated to |
…kThangavel/ipm into feat/list-installed-sorting
isc-dchui
approved these changes
Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhanced Sorting for
list-installedOverview
This PR introduces a new
-sort(shortcut-s) modifier to thelist-installedcommand. It allows users to organize their installed modules by Name, Installation Date, or Semantic Version, significantly improving manageability for environments with many packagesfixes: #1071
Features Added
Three New Sort Modes:
name: Alphabetical sorting (case-insensitive).date: Chronological sorting based on when the module was installed.version: Semantic version sorting (handling Major.Minor.Patch logic).Descending Order Support: Added a
-desc(or-d) suffix to all sort modes to reverse the output.Power-User Shortcuts: Implemented shorthand notation for faster CLI usage:
n,n-d(Name)d,d-d(Date)v,v-d(Version)Testing Performed
Verified all combinations of sort keys and directions via the ZPM shell:
list -s v-dcorrectly places version4.1.2above1.0.1.list -s d-dplaces the most recently installed module at the top.list -s n-d) resolve correctly to their full counterparts.