Add a --sort flag to the "ls" subcommand.