list.sort function

Sort a list by given expressions