Sort vfile messages.
- First sorts by line/column: earlier messages come first
- If two messages occurred at the same place, sorts fatal error before warnings, before info messages
- Otherwise, uses
ruleId, or finally
npm install vfile-sort
var vfile =var sort =var file =filefileconsole// => ['2:2: Another!', '3:1: Error!']
Sort messages in the given vfile.
This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.