Forum:How to sort user by the last edits date?

Is there a way to sort users by the date of their last edit? On Wookiepedia, a new policy was recently implemented, that requires that once a user made no edits for a year, a template should be put on his userpage, to inform other users of his inactive status. Now we are trying to set a bot to do this, because doing through thousands of users hand-by-hand is obviously out of question. Which parameters must we use to ahchieve this?  Mauser  Contact 08:56, 16 July 2009 (UTC)


 * The new list of users show that info, but how to make a bot fetch it i dont know. — TulipVorlax 04:53, 18 July 2009 (UTC)