Sort: add options argument to sort function