Skip to content

Commit e028d4e

Browse files
committed
Closed #85. Fixed the bug in uniqueValues
1 parent 46e47f2 commit e028d4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DataFrame/DataSeries.class.st

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,11 @@ DataSeries >> thirdQuartile [
478478

479479
{ #category : #accessing }
480480
DataSeries >> uniqueValues [
481-
^ self asSet asArray sort
481+
| v |
482+
v := self asSet asArray.
483+
484+
"Sort if possible"
485+
^ [ v sort ] on: Error do: [ v ].
482486
]
483487

484488
{ #category : #statistics }

0 commit comments

Comments
 (0)