order-by should accept empty sequence and return empty string