forked from Plugin-JF-Onkostar/osc-variant
Experimental sort of exported content
This commit is contained in:
@@ -122,6 +122,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
profile,
|
||||
outputfile,
|
||||
compact,
|
||||
sorted,
|
||||
} => {
|
||||
let data = &mut read_inputfile(inputfile)?;
|
||||
|
||||
@@ -132,6 +133,10 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
data.apply_profile(&profile);
|
||||
}
|
||||
|
||||
if sorted {
|
||||
data.sorted();
|
||||
}
|
||||
|
||||
let mut buf = String::new();
|
||||
|
||||
let mut serializer = Serializer::new(&mut buf);
|
||||
|
||||
Reference in New Issue
Block a user