Authored by Justin R. Miller

fixes layer sorting regression introduced in f03045d8

... ... @@ -2814,10 +2814,10 @@
// markers above shapes
//
if ( [annotation1.layer isKindOfClass:[RMMarker class]] && [@[[RMShape class], [RMCircle class]] containsObject:[annotation2.layer class]])
if ( [annotation1.layer isKindOfClass:[RMMarker class]] && ! [annotation2.layer isKindOfClass:[RMMarker class]])
return NSOrderedDescending;
if ( [@[[RMShape class], [RMCircle class]] containsObject:[annotation1.layer class]] && [annotation2.layer isKindOfClass:[RMMarker class]])
if ( ! [annotation1.layer isKindOfClass:[RMMarker class]] && [annotation2.layer isKindOfClass:[RMMarker class]])
return NSOrderedAscending;
// the rest in increasing y-position
... ...