Sort metrics by date