diff --git a/src/service/skills.ts b/src/service/skills.ts index 53d51e7..d8624c4 100644 --- a/src/service/skills.ts +++ b/src/service/skills.ts @@ -18,11 +18,9 @@ export function available(): tID[] { availCache.push(id); } availCache.sort( (a: tID, b: tID) => { - const aname = skillLabel(a); - const bname = skillLabel(b); - if ( aname < bname ) { return -1; } - if ( aname > bname ) { return 1; } - return 0; + const alevel = Skills[a].interest * 1.1 + Skills[a].mastery; + const blevel = Skills[b].interest * 1.1 + Skills[b].mastery; + return blevel - alevel; }); return availCache; }