Fixed a literal list bug and started implementing a Sort library.