thedevsaddam / gojsonq

A simple Go package to Query over JSON/YAML/XML/CSV Data
https://github.com/thedevsaddam/gojsonq/wiki
MIT License
2.18k stars 140 forks source link

Add support for nested level Sorting using SortBy #11

Closed thedevsaddam closed 6 years ago

thedevsaddam commented 6 years ago

Add support for nested level sorting using SortBy()

res := gojsonq.New().File("./data.json").From(".").SortBy("users.name.first").Get()
println(res)
thedevsaddam commented 6 years ago

It'll work from version v1.2.0