add sorting to preference list