Fixed polygon sorting and added latest min script