Is it better to use `Uri.compareTo()` instead? 

http://developer.android.com/reference/android/net/Uri.html#compareTo(android.net.Uri)