Sorting modifies the list in place, causing any existing pointers to the list to point to a random element. Fixes #165 Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>