I'm not the admin of this site, nor do I have any powers on this site, but to fix your issue in 7.5.9 and older:
in admin/logs.php
FIND:
REPLACE WITH:
}
rsort($log);
@closedir($dir);
Done.
EDITED TO ADD:
If you want it to sort in ascending order, instead of using "rsort($log);", use "sort($log);"
I prefer my logs showing the most recent at top, but that can be a nuisance to deal with if you have hundreds of logs you're trying to clear out, without removing just the last 30 or so logs. Though, you really should just find out what is causing the SQL error logs and resolve the issue, then keep checking them and fixing as needed.
Sometimes error entries cannot be avoided -- ex; you're on an overloaded shared server and a script sometimes times-out or runs out of shared mem
ory (usually the "search" script). That will create a log entry, even though the code is correct and is optimized. The server is just not giving it enough of what it needs to complete.