Fixed some of the weird logic in the adapter when trying to determine the
position. Fixed the logic dealing with the second partition id (sort of).
Made the closest location now show up both at the very top and in its
proper location in the list (to prevent confusion).
Added two comments to further clarify the logic.