make variadic sortByMultiple function callable by variable