Will do random pointer sorting for object pointers
| 860 | |
| 861 | // Will do random pointer sorting for object pointers |
| 862 | inline void sortAscending() |
| 863 | { |
| 864 | ELEM_ *e = (ELEM_ *)mBase; |
| 865 | std::sort(e, e+length); |
| 866 | } |
| 867 | static inline bool greaterThan(const ELEM_ &inA, const ELEM_ &inB) { return inB < inA; } |
| 868 | inline void sortDescending() |
| 869 | { |