order the API by hour