sort and limit results of readings