Sort lists via vectors (faster for lists larger than 15 elements or so)