Update build.gradle
Added function for sort.