tweak comparison of functions

BUG=

Review URL: https://chromiumcodereview.appspot.com//13903002