Ranking from client-side

Could you help me about how can I create sort column resource using Ranking.
I tried it, on https environment:

this.client = algoliasearch ("", “”);
this.index = this.client.initIndex (‘users’);
this.index.setSettings ({customRanking: [‘asc (first_name)’]});

I had 403 error in my browser console.
Whats a best way to create a sortable column in my table of results (client-side)?

Thank you,