[Zope] Python script sort by id

Tim Hicks tim@sitefusion.co.uk
Fri, 27 Jul 2001 12:33:01 +0100


This is a MIME encoded message.

--b861bf0683586f35c4fa669a85020d0d0
Content-Type: text/plain
Content-Transfer-Encoding: base64

SSBoYXZlIGEgc2xpZ2h0bHkgc3RyYW5nZSBwcm9ibGVtIHdpdGggc29ydGluZyBpbiBhIHB5dGhv
biBzY3JpcHQuIA0KQmFzaWNhbGx5LCBzb3J0aW5nIGJ5IHRpdGxlIGFuZCBtZXRhX3R5cGUgYm90
aCB3b3JrIGFzIGV4cGVjdGVkLCBidXQgYnkgaWQgcHJvZHVjZXMgdG90YWxseSByYW5kb20gcmVz
dWx0cyB0aGF0IEkgY2Fubm90IGZhdGhvbSAoSSByZWFsbHkgY2FuJ3Qgc2VlIGFueSBwYXR0ZXJu
IGF0IGFsbCkuDQoNCkhlcmUgaXMgdGhlIGNvZGUgc25pcHBldA0KLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tDQpkZWYgc29ydF9pZChvYjEsIG9iMik6DQogICAgcmV0dXJuIGNtcChvYjEuaWQsIG9i
Mi5pZCkNCg0KZGVmIHNvcnRfdGl0bGUob2IxLCBvYjIpOg0KICAgIHJldHVybiBjbXAob2IxLnRp
dGxlLCBvYjIudGl0bGUpDQoNCmRlZiBzb3J0X21ldGEob2IxLCBvYjIpOg0KICAgIHJldHVybiBj
bXAob2IxLm1ldGFfdHlwZSwgb2IyLm1ldGFfdHlwZSkNCg0KaWYgY29udGV4dC5SRVFVRVNULmhh
c19rZXkoJ3NvcnQnKToNCiAgICBvYlZhbHMgPSBjb250ZXh0Lm9iamVjdFZhbHVlcyhhbGxfdHlw
ZXMpDQogICAgb2JWYWxzLnNvcnQoc29ydF9pZCkNCiAgICBpZiBjb250ZXh0LlJFUVVFU1RbJ3Nv
cnQnXSA9PSAndGl0bGUnOg0KICAgICAgICBvYlZhbHMuc29ydChzb3J0X3RpdGxlKQ0KICAgIGVs
aWYgY29udGV4dC5SRVFVRVN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