Again, this is an OS feature, not a simulation by the application. The read system calls return the records in sorted order.