The mobile application doesn't have this option. We already had similar requests from multiple users and our R&D team has in plans to implement the sorting option in the future application versions.
Yes, you can develop custom sorting function. You can try to debug the sorting feature in the web version and implement similar logic for mobile version.