Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oldCRFSort_Group = CRFSort_Group
- CRFSort_Group = function(token1, token2)
- if IsActiveBattlefieldArena() == nil then
- return oldCRFSort_Group(token1, token2)
- end
- local id1 = tonumber(string.sub(token1, 5));
- local id2 = tonumber(string.sub(token2, 5));
- if not id1 or not id2 then
- return id1
- end
- local name1, _, _, _, class1 = GetRaidRosterInfo(id1);
- local name2, _, _, _, class2 = GetRaidRosterInfo(id2);
- if name1 == UnitName("player") then
- return true
- end
- if name2 == UnitName("player") then
- return false
- end
- return id1 < id2
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement