Hi everyone,
Can someone please help me sort these rows in descending order? The "collect" commands are difficult for me.

The code used is
I get the error "input statement exceeds linesize limit. Try specifying fewer variables" even with only 2 variable when trying to use dataex. So I apologize for not providing sample code.
This is a continuation of the previous thread: https://www.statalist.org/forums/for...iple-variables
Thank you!
Can someone please help me sort these rows in descending order? The "collect" commands are difficult for me.
The code used is
Code:
collect clear
dtable 1.(m_bus m_und), ///
title(Table A1: Academic Majors) ///
note(note: Students can select more than one major)
quietly collect levelsof colname
foreach level in `s(levels)'{
collect label levels var `level' "`:var lab `=substr("`level'", 3, .)''"
}
collect layout
This is a continuation of the previous thread: https://www.statalist.org/forums/for...iple-variables
Thank you!

Comment