<div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline" class="gmail_default">Thanks, Dominik. I had seen your <a href="https://cikitsa.blogspot.ca/2016/07/getting-xindy-to-work-for-iast-encoded.html" target="_blank">https://cikitsa.blogspot.ca/<wbr>2016/07/getting-xindy-to-work-<wbr>for-iast-encoded.html</a> before during a Web searching. But a member of this group has kindly promised to write a xindy piece for Urdu. So instead of trying to do the same also on my own, I am trying to still make imakeidx/makeindex work. 
As far as I understand, Makeindex sorts non-Latin characters in the order of their Unicode numerical code.

The following approach, awful and artificial though it is, seems to sort Urdu index entries correctly, essentially by using the makeindex command \index{string1@string2} where string2 is the actual Urdu ​index entry and string1 is its representation described below: <br><br>​</div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline" class="gmail_default">​Urdu letters </div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline" class="gmail_default">​appear in the Arabic script Unicode block 0600-06FF. For about 12 letters, the utf8 numerical order differs from their Urdu alphabetic order. For example, in the Urdu alphabet the letter "peh" comes between the letters "beh" and "teh", but in the Unicode table the utf8 of "peh" is larger than that of "teh". So what I am doing is to represent "peh" by two characters, "beh" followed by another one with utf8 larger than of all Urdu letters. Actually, for these extra characters I use the 
so-called "Eastern Arabic Digits"
0,1,2, ... which I can type on my keyboard and don't need otherwise. Also if two or more Urdu letters come alphabetically between two adjacent utf-8 positions, then for representing them this way with properly ordered representations, digits serve as convenient and easily rememberable extra characters. <br><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline" class="gmail_default">Here, for example, is an \index command to get the Urdu word "<font size="4">ناکارگی</font>"  (pronounced as nākāragī" and

meaning "entropy" in English) show up in its correct position in index:<br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline" class="gmail_default" dir="rtl"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline" class="gmail_default">\index{<br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline" class="gmail_default" dir="rtl"><font size="4">ناق۰ارق۵ی</font><br>@<br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline" class="gmail_default" dir="rtl"><font size="4">ناکارگی</font><br>{<br><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline" class="gmail_default">Doing such extra work for many entries in the index is too cumbersome. But at least the index is prepared correctly. And my priority for the moment is to get something (in which the index is the only unfinished part) finished and delivered, before worrying about elegant solutions! Thanks to everyone who offered suggestions in response to my inquiries.<br><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline" class="gmail_default">Kamal Abdali<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 16, 2018 at 3:27 PM, Dominik Wujastyk <span dir="ltr"><<a href="mailto:wujastyk@gmail.com" target="_blank">wujastyk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:small">A while back, I had a similar issue, and I made some notes about how I got the sorting I needed.  See here:</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:small"><ul><li><a href="https://cikitsa.blogspot.ca/2016/07/getting-xindy-to-work-for-iast-encoded.html" target="_blank">https://cikitsa.blogspot.ca/<wbr>2016/07/getting-xindy-to-work-<wbr>for-iast-encoded.html</a> </li></ul></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-8529719573967322446gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span><div dir="ltr"><div dir="ltr" style="font-size:small"><div style="font-family:"trebuchet ms",sans-serif"><div><font size="1"><span style="font-family:arial,sans-serif"><div style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline">​</div>--</span><br></font></div><div style="font-family:arial,sans-serif"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:"trebuchet ms",sans-serif"><font size="1">Professor <a href="http://ualberta.academia.edu/DominikWujastyk" style="color:rgb(17,85,204)" target="_blank">Dominik Wujastyk</a><div style="font-size:small;display:inline">​,​</div><br>Singhmar Chair in Classical Indian Society and Polity<div style="font-size:small;display:inline">​,​</div><br></font><div><font size="1"><a href="http://historyandclassics.ualberta.ca/" style="color:rgb(17,85,204)" target="_blank">Department of History and Classics</a><div style="font-size:small;display:inline">​,​</div></font></div><font size="1">University of Alberta, Canada<div style="font-size:small;display:inline">​.​</div><br></font></div><div><font size="1">South Asia at the U of A:</font><font style="font-family:"trebuchet ms",sans-serif" size="1"><div style="color:rgb(17,85,204);display:inline"> </div><a href="http://sas.ualberta.ca/" style="color:rgb(17,85,204)" target="_blank">​sas.ualberta.ca​</a><div style="display:inline">​​</div></font></div></div></div></div></div></div></div></div></div></div></div></div></div><span style="font-size:small"><div dir="ltr"><div style="font-family:"trebuchet ms",sans-serif"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"></div></div></div></div></div></div></div></div></span><div><span><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif;font-size:small"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><font size="1"><br></font></div></div></div></div>
</div></div>
</div></div>
</div></div></div></div><font size="1">
</font></div></div></span></div></div></span></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><span class="">On 13 May 2018 at 17:04, Kamal Abdali <span dir="ltr"><<a href="mailto:k.abdali@acm.org" target="_blank">k.abdali@acm.org</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I'm using polyglossia and imakeindex to produce an Urdu document. The sorting order of letters in the index is wrong. The order is according to Arabic, but Urdu has about 9 more letters which are being pushed after the Arabic letters in the index. I couldn't find an option to fix this in the imakeindex style file. It probably should be specified in polyglossia but I don't see a way there either. Any suggestions please?</div><span class="m_-8529719573967322446HOEnZb"><font color="#888888"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Kamal Abdali<br></div></font></span></div>
<br><br>
<br></span><span class="">
------------------------------<wbr>--------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
  <a href="http://tug.org/mailman/listinfo/xetex" rel="noreferrer" target="_blank">http://tug.org/mailman/listinf<wbr>o/xetex</a><br>
<br></span></blockquote></div><br></div>
<br><br>
<br>
------------------------------<wbr>--------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
  <a href="http://tug.org/mailman/listinfo/xetex" rel="noreferrer" target="_blank">http://tug.org/mailman/<wbr>listinfo/xetex</a><br>
<br></blockquote></div><br></div>