ndejong / pfsense_fauxapi

REST based API interface for pfSense 2.3.x and 2.4.x to facilitate devops
Apache License 2.0
354 stars 61 forks source link

Use sort by name by default #65

Closed nagyrobi closed 3 months ago

nagyrobi commented 4 years ago

Some interfaces IP address may change over time, making it harder to process outputted data. If data is ordered by name, the json can be parsed perfectly in child systems.

ndejong commented 4 years ago

Hi - this is a fairly simple patch, but I'm reluctant to change default behavior without a way that allows developers to get-back the original behavior - for example you could pass a $sort parameter into function gateway_status

JOHLC commented 3 years ago

Would also be interested in this ability