added sorting... because I can