Beispiel #1
0
def filter_sort_meth_basic(j, x, value):
    z = sorted(iter(x.items()), key=lambda k_v: (k_v[1], k_v[0]))

    if get_debug():
        for i in z:
            debug("\t %s %f" % (i[0].get_info(), i[1]))

    if z[:1][0][1] > value:
        return []

    return z[:1]
Beispiel #2
0
def filter_sort_meth_basic(j, x, value):
    z = sorted(x.iteritems(), key=lambda (k, v): (v, k))

    if get_debug():
        for i in z:
            debug("\t %s %f" % (i[0].get_info(), i[1]))

    if z[:1][0][1] > value:
        return []

    return z[:1]
Beispiel #3
0
def filter_sort_meth_basic( j, x, value ) :
    z = sorted(x.iteritems(), key=lambda (k,v): (v,k))

    if get_debug() :
        for i in z :
            debug("\t %s %f" %(i[0].get_info(), i[1]))
 
    if z[:1][0][1] > value :
        return []

    return z[:1]
Beispiel #4
0
def filter_sort_meth_basic( j, x, value ):
    z = sorted(iter(x.items()), key=lambda k_v: (k_v[1],k_v[0]))

    if get_debug():
        for i in z:
            debug("\t %s %f" %(i[0].get_info(), i[1]))

    if z[:1][0][1] > value:
        return []

    return z[:1]