def _match_sort_key(m):
 return ((m['timestamp'] is None), (m['timestamp'] or ''))

def _match_sort_key ( m ) : return ( ( m [ 'timestamp' ] is None ) , ( m [ 'timestamp' ] or '' ) )
sort key which treats empty timestamp as most recent .