Skip to content

Commit

Permalink
fix output order in sortedBy example
Browse files Browse the repository at this point in the history
  • Loading branch information
rskvazh committed Sep 14, 2023
1 parent 224ef87 commit f6fd33b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ final dogs = [
final sorted = dogs
.sortedBy((dog) => dog.name)
.thenByDescending((dog) => dog.age);
// Bark, Cookie, Charlie (7), Charlie (2), Tom
// Bark, Charlie (7), Charlie (2), Cookie, Tom
```

### .distinctBy()
Expand Down Expand Up @@ -107,7 +107,7 @@ final word = buildString((sb) {
}
});
// 0123456789
```
```

### .ordinal

Expand Down Expand Up @@ -137,7 +137,7 @@ Returns a copy of the string having its first letter lowercased, or the original
final word = 'abcd'.decapitalize(); // abcd
final anotherWord = 'Abcd'.decapitalize(); // abcd
```

### .isAscii

Returns `true` if the string is ASCII encoded.
Expand Down
2 changes: 1 addition & 1 deletion example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void main() {

final sorted =
dogs.sortedBy((dog) => dog.name).thenByDescending((dog) => dog.age);
// Bark, Cookie, Charlie (7), Charlie (2), Tom
// Bark, Charlie (7), Charlie (2), Cookie, Tom

final words = ['this', 'is', 'a', 'test'];
final distinctByLength =
Expand Down

0 comments on commit f6fd33b

Please sign in to comment.