[IMP]improve the ranking store false and sort using python not in search order