Tag: 按字母顺序

在某个单元格上按字母顺序将行插入表格

我使用jQuery在数据库插入后将行插入表中。 当页面加载时,表格按特定单元格的字母顺序排序(见下文)。 当我使用jQuery插入一个新行时,我希望能够按字母顺序插入它。 所以例如我有一个表格,其中 元素类似于: Edit Document A Description of Document A No classes are currently associated with this document. Edit Document B Description of Document B CLASS111 Description of CLASS101 CLASS333 Description of CLASS333 Edit Document D Description of Document D No classes are currently associated with this document. 目前,当将新类行插入给定文档的 我使用.append()函数,当插入新文档时,我使用.after() 。 使用jQuery我希望能够按字母顺序在类号或文档名称上插入类或文档(适用于插入的内容)。 因此,例如,我希望能够为文档C插入新的 […]