Fix for list sort