diff --git a/gflags/flag.py b/gflags/flag.py
index <HASH>..<HASH> 100644
--- a/gflags/flag.py
+++ b/gflags/flag.py
@@ -29,12 +29,13 @@
 
 """Contains Flag class - information about single command-line flag."""
 
-
+from functools import total_ordering
 from gflags import _helpers
 from gflags import argument_parser
 from gflags import exceptions
 
 
+@total_ordering
 class Flag(object):
   """Information about a command-line flag.
Class Flag defines __eq__ and __lt__ but does not define other relations. Since there are no implied relationships among the comparison operators, to automatically generate ordering operations
from a single root operation functools.total_ordering() used.

<URL>