4 //.float(entity,entity) sort_cmp;
5 .entity sort_next, sort_prev;
10 * Swap two neighbours in a sortlist.
11 * @param a FIRST entity
12 * @param b entity after a
14 #define SORT_SWAP(a,b) \
15 b.sort_prev = a.sort_prev; \
16 a.sort_next = b.sort_next; \
17 if(b.sort_next) b.sort_next.sort_prev = a; \
18 if(a.sort_prev) a.sort_prev.sort_next = b; \