Page 1 of 1

[0.17.0] Available Mods Last Updated Sort Order Issue

Posted: Tue Feb 26, 2019 6:42 pm
by dwfreed
When looking at the list of available mods and sorting by last updated, the first mod in ascending order (or last mod is descending order) shows as having been updated 4 days ago. Checking the mod portal also shows last update as having been 4 days ago. It doesn't matter how much I refresh the list or use other columns for sorting, going back to last updated sort puts it first (or last) in the list. I've attached screenshots, the log, and the mod portal API response I get when I query it myself. The only quirk I noticed in the API response is that this is the only mod in the list that has factorio_version set to 0.16, and all the rest are set to 0.17.

Re: [0.17.0] Available Mods Last Updated Sort Order Issue

Posted: Thu Apr 25, 2019 8:56 pm
by Rseding91
Thanks for the report.

This is a known problem that I don't currently have a solution for. If a mod author updates their mod with an older game version (say a new 0.16 version) it changes the last updated time but the version you're using (0.17) can't install that version messing with the sort order.

Re: [0.17.0] Available Mods Last Updated Sort Order Issue

Posted: Fri Apr 26, 2019 7:38 am
by dwfreed
I can think of a way to fix this, which would be done on the mod portal side of things. You may have already thought of this and tossed it out for one reason or another, but I'll explain it anyway. The latest_release object for each mod should match whatever version restriction is provided, but it currently is just the most recent release of the mod, even if that's for a different Factorio version. It seems like you're just filtering the mod list for mods that have had a release with the specified version, and then going back and fetching the data to populate the objects, but leaving off the version restriction in the data fetch.

The behavior of the sort in the in-game mod GUI seems to combine both the Factorio version of the release as well as the release's timestamp. If the Factorio release is removed from the sort, then it would at least provide a visually correct sort, regardless of whether the above suggestion is implemented.