Fixed ModuleDescriptor.Key.compareTo

Modified `ModuleDescriptor.Key.compareTo` to take group into account if necessary.