Hi Hosam, Hosam Hassan wrote:
Hello all,
I have a table for a list of abbreviations and I need to sort that table based on the first letter in each abbreviation.
For example {table} Apple Banana Doner {table}
When the user edits the table and add for example a new word with A. I want it ot be inserted in the right position.
More or less I have some contents in a form of a list or a table and I want to sort them automatically after any edit or addition.
If you want this make based on XWiki stuff, I think you must elaborate a bit the idea. For instance, to create a custom class to hold abreviations and any information related to them, created an object for each abbreviation and retrieve ordered objects with any of the available XWiki methods. Once again, let me post two "must understand" tutorials to start working with XWiki: http://www.theserverside.com/tt/articles/article.tss?l=XWiki http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial Another option: rely on any of the supported scripting languages. For instance: http://www.kryogenix.org/code/browser/sorttable/ Hope this helps, Ricardo -- Ricardo RodrÃguez Your EPEC Network ICT Team