Ticket #3905 (closed enhancement: fixed)

Opened 6 years ago

Last modified 4 years ago

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:

  1. F7 firefox-58.0.1+build1 Enter
  2. F7 firefox-59.0~b14+build1 Enter
  3. F7 firefox-59.0.1+build1 Enter
  4. 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
  1. $ 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:1 Changed 5 years ago by andrew_b

Related to #3968 and #3956.

comment:2 Changed 5 years ago by andrew_b

  • Blocked By 3956 added

(In #3956) Branch: 3956_file_version_sort_fixes
Initial changeset:2163009270c8dd1d0e93d0f91e3673c69ded7b25

comment:3 Changed 5 years ago by andrew_b

Please test.

comment:4 Changed 5 years ago by yurikhan

Looks good.

comment:5 Changed 5 years ago by andrew_b

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from Future Releases to 4.8.23

Fixed as part of #3956.

Last edited 4 years ago by andrew_b (previous) (diff)
Note: See TracTickets for help on using tickets.