In current releases there is no logic behind it unfortunately, it just stops reading presets when the slots are used up, so it is whatever comes first in the internal storage which you can consider random.
For 5.x however it reads from a resource model that lists them in alphabetical order, so it should match the first presets you see in any preset chooser in Krita.