A Java Pattern for Sorting Persian Strings
Keivan Borna · 2012
Abstract: Sorting Persian strings is a common challenge for many users that develop web-based database applications. This issue occurs more frequently while using Persian data. To the best of our knowledge almost many versions of several DBMS do not support Persian strings sorting properly. In this paper we present a Java pattern for solving this issue. Our object-oriented solution consists of three classes and one interface which have been implemented in the Java programming language. The advantage of our approach is that it is generic and could be generalized to other languages and special cases in a routine way. Furthermore our algorithm does not affect database records due to the usage of array for sorting records. In addition a practical usage of this pattern is presented in this paper. Finally we mention that as usual the total cost of our algorithm for sorting n Persian strings is 0(nlogn).