summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Utilities/sort.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Userland/Utilities/sort.cpp b/Userland/Utilities/sort.cpp
index 0608db036c..505da349c4 100644
--- a/Userland/Utilities/sort.cpp
+++ b/Userland/Utilities/sort.cpp
@@ -37,13 +37,10 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char** argv)
lines.append({ buffer, AK::ShouldChomp::Chomp });
}
- quick_sort(lines, [](auto& a, auto& b) {
- return strcmp(a.characters(), b.characters()) < 0;
- });
+ quick_sort(lines);
for (auto& line : lines) {
- fputs(line.characters(), stdout);
- fputc('\n', stdout);
+ outln("{}", line);
}
return 0;