Use binaryInsert instead of sort