author | Claus Gittinger <cg@exept.de> |
Thu, 09 Jun 2016 12:36:55 +0200 | |
changeset 3898 | c90424dba938 |
parent 585 | ab03e26e2df1 |
child 4281 | c0457c1b6e53 |
permissions | -rw-r--r-- |
182 | 1 |
Object subclass:#SequenceableCollectionSorter |
2 |
instanceVariableNames:'collection atSelector putSelector sizeSelector sortBlock' |
|
3 |
classVariableNames:'DefaultSortBlock' |
|
4 |
poolDictionaries:'' |
|
5 |
category:'Collections-Support' |
|
6 |
! |
|
7 |
||
8 |
!SequenceableCollectionSorter class methodsFor:'documentation'! |
|
9 |
||
10 |
documentation |
|
11 |
" |
|
12 |
a SequenceableCollectionSorter allows for anything which responds to |
|
13 |
keyed at/atPut messages to be sorted just like a SequenceableCollection. |
|
183
01781ca31dad
really use #<= for comparing (used #<)
Claus Gittinger <cg@exept.de>
parents:
182
diff
changeset
|
14 |
Since the access messages can be customized, even non collections |
01781ca31dad
really use #<= for comparing (used #<)
Claus Gittinger <cg@exept.de>
parents:
182
diff
changeset
|
15 |
(or collection simulators, models etc.) can be sorted with these sorters. |
182 | 16 |
(use #atSelector: / #putSelector: and #sizeSelector: for customization). |
17 |
||
18 |
As with collection sorting, the sortBlock can be specified and defaults to |
|
19 |
a block which compares using #< messages. |
|
20 |
" |
|
21 |
! |
|
22 |
||
23 |
examples |
|
24 |
" |
|
25 |
|a sorter| |
|
26 |
||
27 |
a := #(10 5 2 17 5 99 -5). |
|
28 |
sorter := SequenceableCollectionSorter on:a. |
|
29 |
sorter sort. |
|
350 | 30 |
Transcript showCR:a printString |
182 | 31 |
" |
32 |
! ! |
|
33 |
||
34 |
!SequenceableCollectionSorter class methodsFor:'initialization'! |
|
35 |
||
36 |
initialize |
|
37 |
DefaultSortBlock := [:a :b | a <= b] |
|
38 |
||
39 |
" |
|
40 |
SequenceableCollectionSorter initialize |
|
41 |
" |
|
42 |
||
43 |
"Modified: 6.2.1996 / 15:47:48 / cg" |
|
44 |
! ! |
|
45 |
||
46 |
!SequenceableCollectionSorter class methodsFor:'instance creation'! |
|
47 |
||
48 |
on:aCollection |
|
49 |
^ self new collection:aCollection; sortBlock:DefaultSortBlock |
|
50 |
||
51 |
"Created: 6.2.1996 / 15:39:09 / cg" |
|
52 |
"Modified: 6.2.1996 / 16:07:36 / cg" |
|
53 |
! |
|
54 |
||
55 |
on:aCollection using:aTwoArgBlock |
|
56 |
^ self new collection:aCollection; sortBlock:aTwoArgBlock |
|
57 |
||
58 |
"Created: 6.2.1996 / 15:39:32 / cg" |
|
59 |
! |
|
60 |
||
61 |
sort:aCollection |
|
62 |
(self new collection:aCollection; sortBlock:DefaultSortBlock) sort |
|
63 |
||
64 |
"Created: 6.2.1996 / 15:40:04 / cg" |
|
65 |
"Modified: 6.2.1996 / 16:07:42 / cg" |
|
66 |
! |
|
67 |
||
68 |
sort:aCollection using:aTwoArgBlock |
|
69 |
(self new collection:aCollection; sortBlock:aTwoArgBlock) sort |
|
70 |
||
71 |
"Created: 6.2.1996 / 15:39:58 / cg" |
|
72 |
! ! |
|
73 |
||
74 |
!SequenceableCollectionSorter methodsFor:'accessing'! |
|
75 |
||
76 |
atSelector:aSymbol |
|
77 |
"set the selector to access elements. |
|
78 |
If nil (the default), elements are accessed via #at:" |
|
79 |
||
80 |
atSelector := aSymbol |
|
81 |
||
82 |
"Created: 6.2.1996 / 15:35:49 / cg" |
|
83 |
! |
|
84 |
||
85 |
collection |
|
86 |
"return the collections being sorted." |
|
87 |
||
88 |
^ collection |
|
89 |
||
90 |
"Created: 6.2.1996 / 15:37:02 / cg" |
|
91 |
! |
|
92 |
||
93 |
collection:aCollection |
|
94 |
"set the collections being sorted." |
|
95 |
||
96 |
collection := aCollection |
|
97 |
||
98 |
"Created: 6.2.1996 / 15:37:20 / cg" |
|
99 |
! |
|
100 |
||
101 |
putSelector:aSymbol |
|
102 |
"set the selector to access elements. |
|
103 |
If nil (the default), elements are accessed via #at:put:" |
|
104 |
||
105 |
putSelector := aSymbol |
|
106 |
||
107 |
"Created: 6.2.1996 / 15:36:14 / cg" |
|
108 |
! |
|
109 |
||
110 |
sizeSelector:aSymbol |
|
111 |
"set the selector to get the collections size. |
|
112 |
If nil (the default), elements are accessed via #size" |
|
113 |
||
114 |
sizeSelector := aSymbol |
|
115 |
||
116 |
"Created: 6.2.1996 / 15:36:33 / cg" |
|
117 |
! |
|
118 |
||
119 |
sortBlock |
|
120 |
"return the sortBlock which is used to compare two elements. |
|
121 |
The default sortBlock compares elements by sending the #< message." |
|
122 |
||
123 |
^ sortBlock |
|
124 |
||
125 |
"Created: 6.2.1996 / 15:38:32 / cg" |
|
126 |
! |
|
127 |
||
128 |
sortBlock:aTwoArgBlock |
|
129 |
"set the sortBlock which is used to compare two elements. |
|
130 |
The default sortBlock compares elements by sending the #< message." |
|
131 |
||
132 |
sortBlock := aTwoArgBlock |
|
133 |
||
134 |
"Created: 6.2.1996 / 15:38:20 / cg" |
|
135 |
! ! |
|
136 |
||
137 |
!SequenceableCollectionSorter methodsFor:'sorting'! |
|
138 |
||
139 |
defaultSort:inBegin to:inEnd |
|
140 |
"actual sort worker for sorting when the sortBlock is nil (or the default) |
|
184 | 141 |
and default atSelector/putSelectors are to be used. |
142 |
This will execute slightly faster, since no #perform-indirection is needed." |
|
182 | 143 |
|
144 |
|begin "{ Class: SmallInteger }" |
|
145 |
end "{ Class: SmallInteger }" |
|
146 |
b "{ Class: SmallInteger }" |
|
147 |
e "{ Class: SmallInteger }" |
|
148 |
middleElement temp1 temp2 | |
|
149 |
||
150 |
begin := inBegin. "/ this also does a type-check |
|
151 |
end := inEnd. |
|
152 |
||
153 |
b := begin. |
|
154 |
e := end. |
|
155 |
middleElement := collection at:((b + e) // 2). |
|
156 |
||
157 |
[b < e] whileTrue:[ |
|
183
01781ca31dad
really use #<= for comparing (used #<)
Claus Gittinger <cg@exept.de>
parents:
182
diff
changeset
|
158 |
[b < end and:[(collection at:b) <= middleElement]] whileTrue:[b := b + 1]. |
01781ca31dad
really use #<= for comparing (used #<)
Claus Gittinger <cg@exept.de>
parents:
182
diff
changeset
|
159 |
[e > begin and:[middleElement <= (collection at:e)]] whileTrue:[e := e - 1]. |
182 | 160 |
|
161 |
(b <= e) ifTrue:[ |
|
162 |
(b == e) ifFalse:[ |
|
163 |
temp1 := collection at:b. temp2 := collection at:e. |
|
164 |
collection at:b put:temp2. collection at:e put:temp1 |
|
165 |
]. |
|
166 |
b := b + 1. |
|
167 |
e := e - 1 |
|
168 |
] |
|
169 |
]. |
|
170 |
(begin < e) ifTrue:[self defaultSort:begin to:e]. |
|
171 |
(b < end) ifTrue:[self defaultSort:b to:end] |
|
172 |
||
173 |
"Created: 6.2.1996 / 15:44:37 / cg" |
|
184 | 174 |
"Modified: 6.2.1996 / 18:06:23 / cg" |
182 | 175 |
! |
176 |
||
585
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
177 |
nonDefaultSort3:inBegin to:inEnd with:p |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
178 |
"actual sort worker for sorting when a non default sortBlock |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
179 |
with 3 args (stringSort) is used." |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
180 |
|
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
181 |
|begin "{ Class: SmallInteger }" |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
182 |
end "{ Class: SmallInteger }" |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
183 |
b "{ Class: SmallInteger }" |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
184 |
e "{ Class: SmallInteger }" |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
185 |
middleElement temp1 temp2 |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
186 |
atSel putSel| |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
187 |
|
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
188 |
atSel := atSelector ? #at:. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
189 |
putSel := putSelector ? #at:put:. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
190 |
|
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
191 |
begin := inBegin. "/ this also does a type-check |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
192 |
end := inEnd. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
193 |
|
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
194 |
b := begin. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
195 |
e := end. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
196 |
middleElement := collection perform:atSel with:((b + e) // 2). |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
197 |
|
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
198 |
[b < e] whileTrue:[ |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
199 |
[b < end |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
200 |
and:[sortBlock |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
201 |
value:p |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
202 |
value:(collection perform:atSel with:b) |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
203 |
value:middleElement]] |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
204 |
whileTrue:[b := b + 1]. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
205 |
[e > begin |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
206 |
and:[sortBlock |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
207 |
value:p |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
208 |
value:middleElement |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
209 |
value:(collection perform:atSel with:e)]] |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
210 |
whileTrue:[e := e - 1]. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
211 |
|
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
212 |
(b <= e) ifTrue:[ |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
213 |
(b == e) ifFalse:[ |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
214 |
temp1 := (collection perform:atSel with:b). |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
215 |
temp2 := (collection perform:atSel with:e). |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
216 |
collection perform:putSel with:b with:temp2. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
217 |
collection perform:putSel with:e with:temp1. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
218 |
]. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
219 |
b := b + 1. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
220 |
e := e - 1 |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
221 |
] |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
222 |
]. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
223 |
(begin < e) ifTrue:[self nonDefaultSort3:begin to:e with:p]. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
224 |
(b < end) ifTrue:[self nonDefaultSort3:b to:end with:p] |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
225 |
|
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
226 |
"Modified: / 27.10.1997 / 04:52:41 / cg" |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
227 |
"Created: / 27.10.1997 / 18:54:54 / cg" |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
228 |
! |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
229 |
|
182 | 230 |
nonDefaultSort:inBegin to:inEnd |
231 |
"actual sort worker for sorting when a non default sortBlock |
|
184 | 232 |
or nonNil access selectors are used." |
182 | 233 |
|
234 |
|begin "{ Class: SmallInteger }" |
|
235 |
end "{ Class: SmallInteger }" |
|
236 |
b "{ Class: SmallInteger }" |
|
237 |
e "{ Class: SmallInteger }" |
|
585
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
238 |
middleElement temp1 temp2 |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
239 |
atSel putSel| |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
240 |
|
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
241 |
atSel := atSelector ? #at:. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
242 |
putSel := putSelector ? #at:put:. |
182 | 243 |
|
244 |
begin := inBegin. "/ this also does a type-check |
|
245 |
end := inEnd. |
|
246 |
||
247 |
b := begin. |
|
248 |
e := end. |
|
585
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
249 |
middleElement := collection perform:atSel with:((b + e) // 2). |
182 | 250 |
|
251 |
[b < e] whileTrue:[ |
|
252 |
[b < end |
|
253 |
and:[sortBlock |
|
585
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
254 |
value:(collection perform:atSel with:b) |
182 | 255 |
value:middleElement]] |
256 |
whileTrue:[b := b + 1]. |
|
257 |
[e > begin |
|
258 |
and:[sortBlock |
|
259 |
value:middleElement |
|
585
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
260 |
value:(collection perform:atSel with:e)]] |
182 | 261 |
whileTrue:[e := e - 1]. |
262 |
||
263 |
(b <= e) ifTrue:[ |
|
264 |
(b == e) ifFalse:[ |
|
585
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
265 |
temp1 := (collection perform:atSel with:b). |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
266 |
temp2 := (collection perform:atSel with:e). |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
267 |
collection perform:putSel with:b with:temp2. |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
268 |
collection perform:putSel with:e with:temp1. |
182 | 269 |
]. |
270 |
b := b + 1. |
|
271 |
e := e - 1 |
|
272 |
] |
|
273 |
]. |
|
274 |
(begin < e) ifTrue:[self nonDefaultSort:begin to:e]. |
|
275 |
(b < end) ifTrue:[self nonDefaultSort:b to:end] |
|
276 |
||
585
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
277 |
"Created: / 6.2.1996 / 16:06:46 / cg" |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
278 |
"Modified: / 27.10.1997 / 04:52:41 / cg" |
182 | 279 |
! |
280 |
||
281 |
sort |
|
282 |
|sz| |
|
283 |
||
284 |
sizeSelector isNil ifTrue:[ |
|
285 |
sz := collection size |
|
286 |
] ifFalse:[ |
|
287 |
sz := collection perform:sizeSelector |
|
288 |
]. |
|
289 |
self sort:1 to:sz |
|
290 |
||
291 |
"Created: 6.2.1996 / 15:41:21 / cg" |
|
292 |
! |
|
293 |
||
294 |
sort:from to:to |
|
295 |
"actual sort worker for sort-messages" |
|
296 |
||
297 |
(atSelector isNil |
|
298 |
and:[putSelector isNil |
|
299 |
and:[sortBlock isNil or:[sortBlock == DefaultSortBlock]]]) ifTrue:[ |
|
300 |
self defaultSort:from to:to |
|
301 |
] ifFalse:[ |
|
585
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
302 |
sortBlock numArgs == 3 ifTrue:[ |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
303 |
self nonDefaultSort3:from to:to with:nil "p" |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
304 |
] ifFalse:[ |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
305 |
self nonDefaultSort:from to:to |
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
306 |
] |
182 | 307 |
]. |
308 |
||
585
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
309 |
"Modified: / 27.10.1997 / 18:55:48 / cg" |
182 | 310 |
! ! |
311 |
||
312 |
!SequenceableCollectionSorter class methodsFor:'documentation'! |
|
313 |
||
314 |
version |
|
585
ab03e26e2df1
support 3-arg sorting using a collationPolicy
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
315 |
^ '$Header: /cvs/stx/stx/libbasic2/SequenceableCollectionSorter.st,v 1.5 1997-10-28 19:17:02 cg Exp $' |
182 | 316 |
! ! |
317 |
SequenceableCollectionSorter initialize! |