Adds MenuItemComparator

It is a comparison function which compares two MenuItems.

Signed-off-by: Mario Krizmanic <mario.krizmanic@gmail.com>