bb/tool/sort/sort.go
2024-01-05 03:45:34 +03:00

18 lines
248 B
Go

package sort
import (
"fmt"
"os"
"sort"
"vultras.su/util/bb/input"
"vultras.su/core/cli/mtool"
)
func Run(flagSet *mtool.Flags) {
lines, _ := input.ReadAllLines(os.Stdin)
sort.Strings(lines)
for _, l := range lines {
fmt.Print(l)
}
}