* Further optimizations to sort performance