Centralize comparison function - part I