Fixed issue where the ordering option shows selected, but data is not in the same order. Thanks Shyam for reporting