Sort elements, so they appear in a findable manner

Signed-off-by: Robin Getz <robin.getz@analog.com>