[PATCH 2/3] realtek: sort the port list numerically

Bjørn Mork bjorn at mork.no
Mon Apr 12 16:03:58 BST 2021

Sander Vanheule <sander at svanheule.net> writes:

> ls has the -v flag for numerical ("version") sorting:
> 	# ls 
> 	lan0   lan1   lan10  lan2
> 	# ls -v
> 	lan0   lan1   lan2   lan10

Thanks. Was staring at the limited functionality of the busybox sort
app, but didn't think to look at the ls app...

Your variant looks much better.


More information about the openwrt-devel mailing list