with strlcpy
include strlcpy.c
use macro for sort order parameter
sort by value