/** Get the Key used in comparison. */ public Object getKey(Object o) { Sprite S = (Sprite) o; return (new Integer(S.getZ())); }