Closes #199, adding sort for pledge and elf storage