Skip to content

Commit 1b5aafb

Browse files
committed
sort
1 parent 0c3f494 commit 1b5aafb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: action.js

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ function main() {
2525

2626
const data = yaml.parse(fs.readFileSync(__dirname + "/humans.txt.yaml", {encoding: "utf8"}))
2727

28+
data.humans = data.humans.sort((a,b) => a.name > b.name ? 1 : -1)
29+
2830
formatter(data, {output})
2931
}
3032

0 commit comments

Comments
 (0)