Revert "Added event listener for sorting function."

This reverts commit 513a2271efc7ed9d2cbf0211a8471cc90c692db4.
Troubleshooting