Revert "fix ORDER BY to ORDER BY id."

This reverts commit 63df7a3ab2aeff767457541f8b846f21846adf15.