sorting by reading timestamp getREsults method