mc/src
Vladimir Brednikov 3c4221bc40 Ticket #1994: Sort files by version (like strverscmp(3) does)
Suppose we have 3 files with version in their names:
 * file-2.1.tgz
 * file-2.2.tgz
 * file-2.10.tgz

It is impossible to see them in natural order using standard facilities,
they will be sorted in alphabet order:
 * file-2.1.tgz
 * file-2.10.tgz
 * file-2.2.tgz

There was some attempts to fix this. I've picked up the patch by Roland Illig <roland illig gmx de>
(http://mail.gnome.org/archives/mc-devel/2004-July/msg00016.html) and adopted it for today's git snapshot.
It adds "version" option to the sort menu, which uses copy of strverscmp function from glibc.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-22 11:08:37 +02:00
..
consaver Move src/cons.saver into src/consaver/* subdir 2010-01-26 10:30:26 +02:00
editor Ticket #1998 (EditColumnMark can't go up through newline) 2010-02-19 12:59:10 +03:00
viewer Ticket #1917: again search in viewer 2010-02-15 17:17:27 +02:00
.gitignore Added .svnignore files (same as .cvsignore) 2008-12-28 23:27:03 +02:00
achown.c Added deletable member to WListbox structure. 2010-02-04 13:42:44 +00:00
achown.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
args.c Changes for build after moving strutil into lib 2010-01-26 10:30:24 +02:00
args.h Added --keymap command line option 2009-09-29 17:42:34 +00:00
background.c Reorganization of sources. Part 1. 2010-01-26 10:30:23 +02:00
background.h Fixed problems: 2009-10-28 12:05:07 +02:00
boxes.c Changed i18n stuff of Confirmation dialog window. 2010-02-04 13:42:44 +00:00
boxes.h Added handlers for panel sort keybind actions. 2009-10-06 10:18:54 +03:00
charsets.c Changes for build after moving strutil into lib 2010-01-26 10:30:24 +02:00
charsets.h Reorganize work with files. Fixed permissions of files in mc home dir. All file names now accumulated into src/fileloc.h 2009-10-07 12:01:05 +03:00
chmod.c Move all interface includes from subdirs lib/*/*.h into lib/*.h 2010-01-26 10:30:25 +02:00
chmod.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
chown.c Added deletable member to WListbox structure. 2010-02-04 13:42:44 +00:00
chown.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
cmd.c show help for quick search. 2010-02-20 11:25:30 +00:00
cmd.h Reorganization of sources. Part 2 2010-01-26 10:30:23 +02:00
cmddef.h Ticket #1991: toggle panels view 2010-02-04 11:29:16 +02:00
command.c Ticket #1990: code cleanup before 4.7.0.2 release. 2010-02-02 21:45:05 +03:00
command.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
complete.c Added deletable member to WListbox structure. 2010-02-04 13:42:44 +00:00
cons.handler.c Move src/cons.saver into src/consaver/* subdir 2010-01-26 10:30:26 +02:00
dialog.c Ticket #1990: code cleanup before 4.7.0.2 release. 2010-02-02 21:45:05 +03:00
dialog.h Ticket #1990: code cleanup before 4.7.0.2 release. 2010-02-02 21:45:05 +03:00
dir.c Ticket #1994: Sort files by version (like strverscmp(3) does) 2010-02-22 11:08:37 +02:00
dir.h Ticket #1994: Sort files by version (like strverscmp(3) does) 2010-02-22 11:08:37 +02:00
ecs-test.c Reorganization of sources. Part 1. 2010-01-26 10:30:23 +02:00
ecs.c Reorganization of sources. Part 1. 2010-01-26 10:30:23 +02:00
ecs.h Reorganization of sources. Part 1. 2010-01-26 10:30:23 +02:00
execute.c Ticket #1990: code cleanup before 4.7.0.2 release. 2010-02-02 21:45:05 +03:00
execute.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
ext.c Ticket #1838: source_codepage autodetect with enca program. 2010-02-08 15:56:48 +02:00
ext.h Reorganize work with files. Fixed permissions of files in mc home dir. All file names now accumulated into src/fileloc.h 2009-10-07 12:01:05 +03:00
file.c Moved strecape.[ch] into library 2010-01-26 10:30:25 +02:00
file.h Reorganization of sources. Part 1. 2010-01-26 10:30:23 +02:00
filegui.c Moved strecape.[ch] into library 2010-01-26 10:30:25 +02:00
filegui.h Reorganization of sources. Part 1. 2010-01-26 10:30:23 +02:00
filenot.c Changes for build after moving util.[ch] 2010-01-26 10:30:24 +02:00
fileopctx.c Move all interface includes from subdirs lib/*/*.h into lib/*.h 2010-01-26 10:30:25 +02:00
fileopctx.h Fixed problems: 2009-10-28 12:05:07 +02:00
find.c Added deletable member to WListbox structure. 2010-02-04 13:42:44 +00:00
find.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
fsusage.c Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
fsusage.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
help.c Move all interface includes from subdirs lib/*/*.h into lib/*.h 2010-01-26 10:30:25 +02:00
help.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
history.h New 'Goto' dialog implementation in viewer. 2010-01-19 19:15:29 +00:00
hotlist.c Added deletable member to WListbox structure. 2010-02-04 13:42:44 +00:00
hotlist.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
info.c Move all interface includes from subdirs lib/*/*.h into lib/*.h 2010-01-26 10:30:25 +02:00
info.h Call menu using mouse for all panel types. 2009-09-14 15:11:59 +04:00
keybind.c Ticket #1991: toggle panels view 2010-02-04 11:29:16 +02:00
keybind.h Ticket #1990: code cleanup before 4.7.0.2 release. 2010-02-02 21:45:05 +03:00
layout.c Ticket #1991: toggle panels view 2010-02-04 11:29:16 +02:00
layout.h Ticket #1991: toggle panels view 2010-02-04 11:29:16 +02:00
learn.c Moved strecape.[ch] into library 2010-01-26 10:30:25 +02:00
learn.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
listmode.c Added deletable member to WListbox structure. 2010-02-04 13:42:44 +00:00
listmode.h Some fixups with wrongly highlighted words 2009-02-10 16:07:59 +02:00
main-widgets.h Ticket #1563: Modified menu engine to create and modify menu dynamically. 2009-10-26 16:15:31 +03:00
main.c Ticket #1838: source_codepage autodetect with enca program. 2010-02-08 15:56:48 +02:00
main.h Ticket #1838: source_codepage autodetect with enca program. 2010-02-08 15:56:48 +02:00
Makefile.am Move src/cons.saver into src/consaver/* subdir 2010-01-26 10:30:26 +02:00
man2hlp.c Cleanup of code for compile with new warnings options for compilator 2009-10-30 20:36:48 +02:00
menu.c Ticket #1702: changed colors of alvays visible inactive menu bar. 2010-02-01 15:58:01 +00:00
menu.h Reorganization of sources. Part 1. 2010-01-26 10:30:23 +02:00
mfmt.c Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
mountlist.c Changes for build after moving util.[ch] 2010-01-26 10:30:24 +02:00
mountlist.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
option.c Move all interface includes from subdirs lib/*/*.h into lib/*.h 2010-01-26 10:30:25 +02:00
option.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
panel.h Changes for build after moving strutil into lib 2010-01-26 10:30:24 +02:00
panelize.c Added deletable member to WListbox structure. 2010-02-04 13:42:44 +00:00
panelize.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
screen.c Ticket #1994: Sort files by version (like strverscmp(3) does) 2010-02-22 11:08:37 +02:00
selcodepage.c Ticket #1838: source_codepage autodetect with enca program. 2010-02-08 15:56:48 +02:00
selcodepage.h Ticket #1838: source_codepage autodetect with enca program. 2010-02-08 15:56:48 +02:00
setup.c Ticket #1767: Custom/locale-based date format 2010-02-15 12:31:47 +02:00
setup.h Ticket #1918: viewer in QuickView mode corrupts screen. 2010-01-06 18:12:53 +03:00
subshell.c Ticket #2008: reimplemented pty_buffer as static buffer. 2010-02-19 11:30:29 +00:00
subshell.h Simple doxygen description for files in src directory. 2009-02-10 16:07:59 +02:00
textconf.c Reorganization of sources. Part 1. 2010-01-26 10:30:23 +02:00
textconf.h Ticket #390: remove own 'libpopt' stuff. 2009-09-02 14:32:32 +03:00
tree.c Move all interface includes from subdirs lib/*/*.h into lib/*.h 2010-01-26 10:30:25 +02:00
tree.h Implemented keybindings engine for ButtonBar (F1-F10 keys). 2009-11-19 10:07:51 +03:00
treestore.c Move all interface includes from subdirs lib/*/*.h into lib/*.h 2010-01-26 10:30:25 +02:00
treestore.h Reorganize work with files. Fixed permissions of files in mc home dir. All file names now accumulated into src/fileloc.h 2009-10-07 12:01:05 +03:00
user.c Reimplemented WListbox to use GList. 2010-02-04 13:42:43 +00:00
user.h Ticket #1990: code cleanup before 4.7.0.2 release. 2010-02-02 21:45:05 +03:00
widget.c Fixed listbox scrolling after item deletion. 2010-02-04 13:42:44 +00:00
widget.h Reimplemented usage of history list in history dialog. 2010-02-04 13:42:44 +00:00
wtools.c Added deletable member to WListbox structure. 2010-02-04 13:42:44 +00:00
wtools.h Reorganization of sources. Part 1. 2010-01-26 10:30:23 +02:00