Cube  Diff

Differences From Artifact [b6800d39f8]:

To Artifact [f7a80f995c]:


14
15
16
17
18
19
20


21
22









23
24
25
26
27
28
29
14
15
16
17
18
19
20
21
22


23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38







+
+
-
-
+
+
+
+
+
+
+
+
+







- (OFComparisonResult)compare:(id)otherObject
{
	MenuItem *otherItem;

	if (![otherObject isKindOfClass:MenuItem.class])
		@throw [OFInvalidArgumentException exception];

	int x, y;
	@try {
	int x = (int)_text.longLongValue;
	int y = (int)otherItem.text.longLongValue;
		x = (int)_text.longLongValue;
	} @catch (OFInvalidFormatException *e) {
		x = 0;
	}
	@try {
		y = (int)otherItem.text.longLongValue;
	} @catch (OFInvalidFormatException *e) {
		y = 0;
	}

	if (x > y)
		return OFOrderedAscending;
	if (x < y)
		return OFOrderedDescending;

	return OFOrderedSame;