Hi,
It appears that the Competitions table in the database has become so large (250 MB for just that single table), that the sorting actions which require examining every row of the table are unable to be completed. The sorting queries for Tracker ID, Competition, Skill, Start Time, and End Time are all very quick because they refer to individual columns in the table (which can be indexed). However, the Xp Gained, Participants, and Top Competitor sorting queries are much more advanced, because there is no way to determine either of those three without scanning the entire table and calculating each value individually for each of the thousands of competitions (these three values could be set up as their columns, but that would involve quite a bit of new code).
As a temporary solution until I get around to figuring out a better way to sort by Xp Gained, Participants, or Top Competitor, I've now set up the query such that when sorting via these three options, it will only display the results based on the last 1,000 competitions (so sorting All Competitions by Xp Gained will give you the top competition Xp Gains for the latest 1,000 competitions sorted in whatever order you choose). Note that this will only happen when you choose to sort by "All Competitions" or "Finished Competitions", as those are the only two options which have more than 1,000 competitions that could be returned. Additionally, as I previously stated, the sorting queries for Tracker ID, Competition, Skill, Start Time, and End Time are also unaffected and will continue to display results from all selection types in full.
Let me know if you have any questions about this or notice any more issues.
