id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blockedby,blocking,branch_state,votes 3905,Version sort does not handle tilde,yurikhan,,"'''Versions:''' mc 4.8.15 on Ubuntu 16.04. '''To reproduce:''' 0. F7 `firefox-58.0.1+build1` Enter 1. F7 `firefox-59.0~b14+build1` Enter 2. F7 `firefox-59.0.1+build1` Enter 3. 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 }}} 4. `$ 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 [https://www.debian.org/doc/debian-policy/#s-f-version 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.",enhancement,closed,major,4.8.23,mc-core,4.8.15,fixed,panel sort,,3956,,no branch,