fn ordered_spells( ids: &[i32], by_id: &mut IntMap<i32, SpellDataFlat>, ) -> Result<Vec<SpellDataFlat>, CacheError>