Fixes #15 (list sorting)