Fixing sorting bug on organization's index table