extending sorting