Fix incorrect comparator implementation leading to IllegalArgumentException.

The current comparator implementation does not implement the compare()
function according to the interface definition. In particular, the
following clause is violated:

"The implementor must ensure that sgn(compare(x, y)) == -sgn(compare(y, x))
for all x and y."

If a.priority == b.priority, the comparator throws.

Bug: 24223197
Change-Id: Ibff94067de272d8c9372474fa24a161bf95bf6f1
1 file changed
tree: 2b6d9c8f46a516bc624409ac20c6720a0a4ea600
  1. service/