commits sorting