with list sorting