added ordering filter to common.py