Add sorting to unit tests

Tests for Duration, Offset and LocalTime are now failing