Added measurement hash function. Reversed sort for newsfeed