Added Private Method sortListeners()