Fix list_sort() to not invert the list
Fix list_sort() to not invert the list

list_sort() as written always adds to head on its new list, which is
wrong.

This patch updates head each time so that it's actually appending.

Signed-off-by: Peter Jones <2e0a021e603479ff81838c00c3b770daca4e0214@redhat.com>

rhboot/efivar,rhboot/efivar,rhinstaller/efivar,rhinstaller/efivar