1.1 --- a/core/smn_sorting.cpp Tue Nov 20 03:55:54 2007 +0000
1.2 +++ b/core/smn_sorting.cpp Tue Nov 20 04:36:38 2007 +0000
1.3 @@ -423,7 +423,7 @@
1.4 }
1.5 else if (type == Sort_Float)
1.6 {
1.7 - if (type == Sort_Ascending)
1.8 + if (order == Sort_Ascending)
1.9 {
1.10 qsort(array, arraysize, blocksize * sizeof(cell_t), sort_floats_asc);
1.11 }
1.12 @@ -434,7 +434,7 @@
1.13 }
1.14 else if (type == Sort_String)
1.15 {
1.16 - if (type == Sort_Ascending)
1.17 + if (order == Sort_Ascending)
1.18 {
1.19 qsort(array, arraysize, blocksize * sizeof(cell_t), sort_adtarray_strings_asc);
1.20 }