Map Transforming

Sorry for a query, how can I sort the data in a table (and show it) taking as a parameter a value of a tag in “real time” (without modifying the database). I was thinking of using something like “Map transforming”.

For example: I have a list of signals in the database, but if any of those signals are alarmed in the program: That I return the list with the alarmed signals at the beginning.

I remain attentive to what you can tell me