text: // Persian-tools.js Copyright 2018 Ali.Torki
  !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):e.SortText=r()}(this,function(){"use strict";return function(e){if(e){var n=function(e){return e.replace(/ی/g,"ي").replace(/ک/g,"ك").replace(/ھ/g,"ه").replace(/پ/g,"بی").replace(/چ/g,"جی").replace(/ڕ/g,"ری").replace(/ژ/g,"زی").replace(/ڤ/g,"فی").replace(/ڵ/g,"لی").replace(/گ/g,"كی").replace(/ۆ/g,"وی").replace(/ە/g,"هی").replace(/ێ/g,"يي")},r=e.split(" ");return r.sort(function(e,r){var t=n(e),c=n(r);return t<c?-1:c<t?1:0}),r}}});
  