I don't know if this is necessarily useful, but it isn't possible to implement a meaningful generic comparator.
Thanks to the reflection interface, you could, for example, order objects by their classname. Or perhaps even in some manner by their class hierarchy. Children after parents, for example.
Or you could sort them based on what their toString() method produces. Or hashCode(). Every object has them, after all.
Whatever you do, remember to consider that either element could be null.
I think we need to know what you need this generic comparator for.