Yii1 extention - Fast custom sorting algorithm based on a fast insert records in a table