Change sorting internals to allow sorting numbers and text differently