id summary reporter owner description type status priority milestone component version resolution keywords cc 145 Update Parameters to properly implement compareTo and equals Peter Powers Peter Powers It appears that the initial compareTo implementations were done to support equals and often only return 0 or -1. There are situations in which one would want to sort groups of parameters for presentation. Need to implement compareTo such that sorting is by parameter name, then value, with null params, names, or values always returning -1 and sinking in any list (unless both two params both have null values). This should be done using the generics Comparable interface. For lists of with type ParameterAPI, compareTo in a specific Param will throw ClassCastExceptions so these need to be caught and passed up to abstract parents that will compare on name only. enhancement closed major OpenSHA 1.2 sha fixed