Fixed FallbackProvider priority sorting (#4150).

This commit is contained in:
Richard Moore 2023-07-27 20:51:07 -04:00
parent d3e5e2c45b
commit 78538eb100

@ -485,7 +485,7 @@ export class FallbackProvider extends AbstractProvider {
// Shuffle the states, sorted by priority
const allConfigs = this.#configs.slice();
shuffle(allConfigs);
allConfigs.sort((a, b) => (b.priority - a.priority));
allConfigs.sort((a, b) => (a.priority - b.priority));
for (const config of allConfigs) {
if (config._lastFatalError) { continue; }