Add test for sorting empty list.