diff --git a/headers/os/support/StringList.h b/headers/os/support/StringList.h
index e58956b..9ef83cc 100644
a
|
b
|
public:
|
35 | 35 | void MakeEmpty(); |
36 | 36 | |
37 | 37 | // Reorder items |
38 | | void Sort(bool ignoreCase = false); |
39 | | // TODO: Sort() with custom sort function. |
| 38 | void Sort(bool ignoreCase = false); |
| 39 | void Sort(int (*compareFunc)(const void*, const void*)); |
| 40 | |
40 | 41 | bool Swap(int32 indexA, int32 indexB); |
41 | 42 | bool Move(int32 fromIndex, int32 toIndex); |
42 | 43 | |
diff --git a/src/kits/support/StringList.cpp b/src/kits/support/StringList.cpp
index 900322d..b0dbbb8 100644
a
|
b
|
BStringList::Sort(bool ignoreCase)
|
201 | 201 | ? compare_private_data_ignore_case : compare_private_data); |
202 | 202 | } |
203 | 203 | |
| 204 | void |
| 205 | BStringList::Sort(int (*compareFunc)(const void*, const void*)) |
| 206 | { |
| 207 | if (compareFunc != NULL) |
| 208 | fStrings.SortItems(compareFunc); |
| 209 | } |
| 210 | |
204 | 211 | |
205 | 212 | bool |
206 | 213 | BStringList::Swap(int32 indexA, int32 indexB) |