2020-02-26 18:04:11 +03:00
|
|
|
package sort
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
"sort"
|
2024-01-05 03:45:34 +03:00
|
|
|
"vultras.su/util/bb/input"
|
2024-01-05 03:22:55 +03:00
|
|
|
"vultras.su/core/cli/mtool"
|
2020-02-26 18:04:11 +03:00
|
|
|
)
|
|
|
|
|
2023-03-24 16:54:51 +03:00
|
|
|
func Run(flagSet *mtool.Flags) {
|
2020-03-23 19:12:50 +03:00
|
|
|
lines, _ := input.ReadAllLines(os.Stdin)
|
2020-02-26 18:04:11 +03:00
|
|
|
sort.Strings(lines)
|
|
|
|
for _, l := range lines {
|
|
|
|
fmt.Print(l)
|
|
|
|
}
|
2020-03-23 19:12:50 +03:00
|
|
|
|
2020-02-26 18:04:11 +03:00
|
|
|
}
|