Whilst "Latent Image" is very good drama, computer programs don't work the way the Doctor does in that episode. Suppose the EMH has a database of who is on Voyager and he orders that information by "priority" ie who is the most valuable to the crew. No one on that list will be in the same position as anyone else, even if the secondary sort order is something trivial like the order in which they were added to the database. Even if you don't specify a secondary sort order parameter, the database still uses one.
EMH: Computer? What does this sorting parameter "regular cast member/recurring cast/added extra / added extra without lines" specify, and why is Ensign Kim a member of the first group but not Ensign Jetal? I've never seen this one before ...
COMPUTER: That information requires a level ten clearance.
EMH: Level ten clearance? But clearances only go up to level nine!
COMPUTER: They do go higher, but not within this universe.
EMH: What's that supposed to mean?
COMPUTER: That information requires a level ten clearance. Now start operating on Ensign Kim.