a database can sort records