MCPcopy Index your code
hub / github.com/QwikDev/qwik / sortQueue

Function sortQueue

packages/qwik/src/core/preloader/queue.ts:34–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 queue.length = 0;
33};
34export const sortQueue = () => {
35 if (queueDirty) {
36 queue.sort((a, b) => a.$inverseProbability$ - b.$inverseProbability$);
37 queueDirty = false;
38 }
39};
40/**
41 * This returns `[probability, url1, url2, probability, url3, ...]` in the way `preload()` expects.
42 *

Callers 2

getQueueFunction · 0.85
triggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…