Revert "attempt 4: adding eq sorting code to this file"

This reverts commit 2ec74944eef54c291f6c5e9a83acf20ca0e0a893.