Get dates sorted