moveRanking function
Implementation
List<String> moveRanking(List<String> order,String id,int offset){final from=order.indexOf(id);if(from<0)return [...order];final to=(from+offset).clamp(0,order.length-1),next=[...order];next.removeAt(from);next.insert(to,id);return next;}