Ticket #3905 (closed enhancement: fixed)
Version sort does not handle tilde
Reported by: | yurikhan | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 4.8.23 |
Component: | mc-core | Version: | 4.8.15 |
Keywords: | panel sort | Cc: | |
Blocked By: | #3956 | Blocking: | |
Branch state: | no branch | Votes for changeset: |
Description
Versions: mc 4.8.15 on Ubuntu 16.04.
To reproduce:
- F7 firefox-58.0.1+build1 Enter
- F7 firefox-59.0~b14+build1 Enter
- F7 firefox-59.0.1+build1 Enter
- F9 Enter | Sort order, (*) Version, [ ] Reverse, OK
Observed behavior: in the Midnight Commander panel, the order is:
firefox-58.0.1+build1 firefox-59.0.1+build1 firefox-59.0~b14+build1
- $ ls -1v
Observed behavior: in the ls output, the order is:
firefox-58.0.1+build1 firefox-59.0~b14+build1 firefox-59.0.1+build1
Expected behavior: Midnight Commander ordering should be consistent with ls.
Background: The tilde character in version numbers is specified by Debian Policy to come before everything, even the end of a version component. And I checked, ls implements it natively, it’s not a Debian-specific patch.
Change History
comment:2 Changed 6 years ago by andrew_b
- Blocked By 3956 added
(In #3956) Branch: 3956_file_version_sort_fixes
Initial changeset:2163009270c8dd1d0e93d0f91e3673c69ded7b25
Note: See
TracTickets for help on using
tickets.
Related to #3968 and #3956.