diff --git a/src/Text/XML/XSD/DateTime.hs b/src/Text/XML/XSD/DateTime.hs
--- a/src/Text/XML/XSD/DateTime.hs
+++ b/src/Text/XML/XSD/DateTime.hs
@@ -63,7 +63,7 @@
 data DateTime =
   DtZoned UTCTime
   | DtUnzoned LocalTime
-  deriving Eq
+  deriving (Eq, Ord)
 
 -- | Internal helper that creates a date time. Note, if the given hour
 -- is 24 then the minutes and seconds are assumed to be 0.
diff --git a/xsd.cabal b/xsd.cabal
--- a/xsd.cabal
+++ b/xsd.cabal
@@ -1,5 +1,5 @@
 name:                 xsd
-version:              0.5.0.0
+version:              0.5.0.1
 license:              BSD3
 license-file:         LICENSE
 author:               Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ>
