The Trunk: 51Deprecated-mt.43.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: 51Deprecated-mt.43.mcz

commits-2
Marcel Taeumel uploaded a new version of 51Deprecated to project The Trunk:
http://source.squeak.org/trunk/51Deprecated-mt.43.mcz

==================== Summary ====================

Name: 51Deprecated-mt.43
Author: mt
Time: 12 August 2016, 10:25:11.220343 am
UUID: b73f0ccb-866f-474a-987a-4c8fe1b1da8a
Ancestors: 51Deprecated-tfel.42

Deprecate #sortBy:.

=============== Diff against 51Deprecated-tfel.42 ===============

Item was added:
+ ----- Method: SequenceableCollection>>sortBy: (in category '*51Deprecated-copying') -----
+ sortBy: aBlock
+ "Create a copy that is sorted.  Sort criteria is the block that accepts two arguments.
+ When the block is true, the first arg goes first ([:a :b | a > b] sorts in descending
+ order)."
+
+ self deprecated: 'mt: Use #sorted:.'.
+ ^ self asOrderedCollection
+ sort: aBlock;
+ yourself!