I have spent a considerable amount of time searching the website for a solution to my problem, but unfortunately, I have not been able to find one. The options available are either too complicated, require the use of JQuery or an external library, or simply do not work for me.
I am in need of a JavaScript code that meets the following criteria:
- Can be executed on the client side from a bookmark
- Easy to comprehend
- No reliance on libraries
- Capable of sorting an HTML table and highlighting related titles
This project pertains to a Helpdesk software where multiple tickets can be generated due to replies, forwards, or conversations, resulting in a scenario such as:
- First ticket title: Cannot login
- Second ticket title: Re: Cannot login
- Third ticket title: Fw: R: Cannot login
Sorting through these tickets, especially when there are many, can be error-prone and frustrating, particularly during busy periods. Therefore, I am seeking a method to quickly organize and emphasize them with a single click without altering any existing formatting.
The HTML table does not include a header but features the first two rows for headers and filtering functionality. As a result, any code provided should be able to skip over these initial rows.
If you have a suitable code snippet to address this issue, please share it with me.