fix list sorting