File tree Expand file tree Collapse file tree
app/pages/package/[[org]]/[name] Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,13 +71,13 @@ const latestTagRow = computed(() => tagRows.value.find(r => r.tags.includes('lat
7171const otherTagRows = computed (() =>
7272 tagRows .value
7373 .filter (r => ! r .tags .includes (' latest' ))
74- .sort ((a , b ) => {
75- const pa = getTagPriority (a .primaryTag )
76- const pb = getTagPriority (b .primaryTag )
77- if (pa !== pb ) return pa - pb
78- const ta = versionTimes .value [a .version ] ?? ' '
79- const tb = versionTimes .value [b .version ] ?? ' '
80- return tb .localeCompare (ta )
74+ .sort ((rowA , rowB ) => {
75+ const priorityA = getTagPriority (rowA .primaryTag )
76+ const priorityB = getTagPriority (rowB .primaryTag )
77+ if (priorityA !== priorityB ) return priorityA - priorityB
78+ const timeA = versionTimes .value [rowA .version ] ?? ' '
79+ const timeB = versionTimes .value [rowB .version ] ?? ' '
80+ return timeB .localeCompare (timeA )
8181 }),
8282)
8383
You can’t perform that action at this time.
0 commit comments