How to sort top result on virtual memory on Redhat Linux?

You get a list of things you can sort by by pressing O. Virtual segment size is option o, so you can get what you want by pressing Oo<Enter>.


Try pressing F or O in top, that should allow you to select the column you want to sort by.