Skip to content

Commit 595e41e

Browse files
committed
Sort ls output alphabetically.
1 parent 3c30a09 commit 595e41e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • implement-shell-tools/ls

implement-shell-tools/ls/ls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
args = parser.parse_args()
2222

23-
entries = os.listdir(args.filepath)
23+
entries = sorted(os.listdir(args.filepath))
2424

2525
if args.show_hidden_files:
2626
entries = [".", ".."] + entries

0 commit comments

Comments
 (0)