#7: foundation for sorting