sort lists for display