simplifying container sorting API/SPI