Fixed broken list sort