Dear Richard,Sorry, I use a old version "kirkstone". Yes, I see the unstable sort problem is fixed in siggen.py in newer version.I think the existed solution is also OK.Please ignore current patch.Thank you