function sortListings sortListings<T extends SortableListing>(listings: T[],holidays: Holiday[],): T[] Sort listings in unified 3-tier order. Takes anything carrying the values the order is built from, so a narrow picker read sorts the same way a full listing record does. Type Parameters T extends SortableListing Parameters listings: T[] holidays: Holiday[] Return Type T[]