#!/usr/bin/env python3
# -*- coding: utf-8 -*-

'''
Dao Phay library: A collection of tools for processing Vietnamese text using Python.
Latest version can be found at https://github.com/letuananh/chirptext

References:
	Python documentation:
		https://docs.python.org/
	PEP 257 - Python Docstring Conventions:
		https://www.python.org/dev/peps/pep-0257/

@author: Le Tuan Anh <tuananh.ke@gmail.com>
'''

# Copyright (c) 2015, Le Tuan Anh <tuananh.ke@gmail.com>
#
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#copies of the Software, and to permit persons to whom the Software is
#furnished to do so, subject to the following conditions:
#
#The above copyright notice and this permission notice shall be included in
#all copies or substantial portions of the Software.
#
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
#THE SOFTWARE.

__author__ = "Le Tuan Anh <tuananh.ke@gmail.com>"
__copyright__ = "Copyright 2015, chirptext"
__credits__ = [ "Le Tuan Anh" ]
__license__ = "MIT"
__version__ = "0.1"
__maintainer__ = "Le Tuan Anh"
__email__ = "<tuananh.ke@gmail.com>"
__status__ = "Prototype"

########################################################################

import sys
import os

########################################################################

# in lower case: aàảãáạăằẳẵắặâầẩẫấậbcdđeèẻẽéẹêềểễếệghiìỉĩíịklmnoòỏõóọôồổỗốộơờởỡớợpqrstuùủũúụưừửữứựvxyỳỷỹýỵ
VIETNAMESE_ALPHABET_ORDER = 'aAàÀảẢãÃáÁạẠăĂằẰẳẲẵẴắẮặẶâÂầẦẩẨẫẪấẤậẬbBcCdDđĐeEèÈẻẺẽẼéÉẹẸêÊềỀểỂễỄếẾệỆgGhHiIìÌỉỈĩĨíÍịỊkKlLmMnNoOòÒỏỎõÕóÓọỌôÔồỒổỔỗỖốỐộỘơƠờỜởỞỡỠớỚợỢpPqQrRsStTuUùÙủỦũŨúÚụỤưƯừỪửỬữỮứỨựỰvVxXyYỳỲỷỶỹỸýÝỵỴ'
VIETNAMESE_SORTING_DICT = dict((x, VIETNAMESE_ALPHABET_ORDER.index(x)) for x in VIETNAMESE_ALPHABET_ORDER)

class DaoPhay:
	@staticmethod
	def vn_sorted(list_of_strings):
		return sorted(list_of_strings, key=lambda x: [VIETNAMESE_SORTING_DICT[c] for c in x])
########################################################################

def main():
	print("Dao phay is a library, not an application.")
	pass

if __name__ == "__main__":
	main()

@@ -213,17 +213,20 @@
 rences:%0A
-%09
+    
 Python d
@@ -239,18 +239,24 @@
 tation:%0A
-%09%09
+        
 https://
@@ -272,17 +272,20 @@
 on.org/%0A
-%09
+    
 PEP 257 
@@ -316,18 +316,24 @@
 ntions:%0A
-%09%09
+        
 https://
@@ -1629,23 +1629,8 @@
  = %5B
- %22Le Tuan Anh%22 
 %5D%0A__
@@ -1839,19 +1839,10 @@
 ##%0A%0A
-import sys%0A
+# 
 impo
@@ -1848,16 +1848,17 @@
 ort os%0A%0A
+%0A
 ########
@@ -2347,16 +2347,17 @@
 ORDER)%0A%0A
+%0A
 class Da
@@ -2363,17 +2363,20 @@
 aoPhay:%0A
-%09
+    
 @staticm
@@ -2381,17 +2381,20 @@
 cmethod%0A
-%09
+    
 def vn_s
@@ -2421,10 +2421,16 @@
 s):%0A
-%09%09
+        
 retu
@@ -2511,16 +2511,18 @@
  in x%5D)%0A
+%0A%0A
 ########
@@ -2591,21 +2591,39 @@
 ##%0A%0A
-def main():%0A%09
+if __name__ == %22__main__%22:%0A    
 prin
@@ -2674,46 +2674,4 @@
 .%22)%0A
-%09pass%0A%0Aif __name__ == %22__main__%22:%0A%09main()%0A

Clean code