ObjFW  Diff

Differences From Artifact [15022d3186]:

To Artifact [b6dec58036]:


731
732
733
734
735
736
737

738














739
740
741

742
743
744
745
746
747

748
749
750
751
752
753
754
	[new sort];

	[new makeImmutable];

	return new;
}


- (OFArray *)sortedArrayWithOptions: (int)options














{
	OFMutableArray *new = [[self mutableCopy] autorelease];


	[new sortWithOptions: options];

	[new makeImmutable];

	return new;
}


- (OFArray *)reversedArray
{
	OFMutableArray *new = [[self mutableCopy] autorelease];

	[new reverse];








>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>



>
|





>







731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
	[new sort];

	[new makeImmutable];

	return new;
}

- (OFArray *)sortedArrayUsingSelector: (SEL)selector
			      options: (int)options
{
	OFMutableArray *new = [[self mutableCopy] autorelease];

	[new sortUsingSelector: selector
		       options: options];

	[new makeImmutable];

	return new;
}

#ifdef OF_HAVE_BLOCKS
- (OFArray *)sortedArrayUsingComparator: (of_comparator_t)comparator
				options: (int)options
{
	OFMutableArray *new = [[self mutableCopy] autorelease];

	[new sortUsingComparator: comparator
			 options: options];

	[new makeImmutable];

	return new;
}
#endif

- (OFArray *)reversedArray
{
	OFMutableArray *new = [[self mutableCopy] autorelease];

	[new reverse];