mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix sort(1) reverse sort not working.
This commit is contained in:
parent
c4077e9a4b
commit
40594eba1c
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2014.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2014, 2015.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by the Free
|
||||
|
@ -61,7 +61,7 @@ int compare_line_reverse(const char* a, const char* b)
|
|||
|
||||
int indirect_compare_line_reverse(const void* a_ptr, const void* b_ptr)
|
||||
{
|
||||
return indirect_compare(compare_line, a_ptr, b_ptr);
|
||||
return indirect_compare(compare_line_reverse, a_ptr, b_ptr);
|
||||
}
|
||||
|
||||
int compare_version(const char* a, const char* b)
|
||||
|
@ -81,7 +81,7 @@ int compare_version_reverse(const char* a, const char* b)
|
|||
|
||||
int indirect_compare_version_reverse(const void* a_ptr, const void* b_ptr)
|
||||
{
|
||||
return indirect_compare(compare_version, a_ptr, b_ptr);
|
||||
return indirect_compare(compare_version_reverse, a_ptr, b_ptr);
|
||||
}
|
||||
|
||||
struct input_stream
|
||||
|
|
Loading…
Add table
Reference in a new issue