Skip to content

Commit 8f88306

Browse files
1 parent 84c2e18 commit 8f88306

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/DataFrame/DataFrame.class.st

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,6 +2179,13 @@ DataFrame >> size [
21792179
^ self numberOfRows
21802180
]
21812181

2182+
{ #category : #sorting }
2183+
DataFrame >> sortBy: columnName [
2184+
"Rearranges the rows of the data frame in ascending order of the values in the column named columnName"
2185+
2186+
self sortBy: columnName using: [ :a :b | a <= b ]
2187+
]
2188+
21822189
{ #category : #sorting }
21832190
DataFrame >> sortBy: columnName using: aBlock [
21842191
"Rearranges the rows of the data frame by applying the given block on the column named columnName"

0 commit comments

Comments
 (0)