 			let res = sub1.compare(sub2)
 			switch res {
 			case .OrderedAscending:
+					return -1
+			case .OrderedDescending:
 					return 1
-			case .OrderedDescending:
-					return -1
 			case .OrderedSame:
 					return 0
 			}


		keys.removeAllObjects()

		iterator.enumerateKeysWithPrefix("101", usingBlock: { (key, stop) -> Void in
			keys.addObject(key)
		})



		keys.removeAllObjects()

		iterator.enumerateKeysWithPrefix("42", usingBlock: { (key, stop) -> Void in
			keys.addObject(key)
		})

