关于从小到大输出问题
void main()
{
struct staff sta[10]={
{"201060001","Zhao"},
{"201060005","Wang"},
{"201060002","Qian"},
{"201060003","Sun"},
{"201060004","Li"},
{"201060007","Wu"},
{"201060006","Zhou"},
{"201060010","Shen"},
{"201060008","Zhen"},
{"201060009","Jiang"}
};
我要将学号从小到大输出,怎么输出啊?
{
struct staff sta[10]={
{"201060001","Zhao"},
{"201060005","Wang"},
{"201060002","Qian"},
{"201060003","Sun"},
{"201060004","Li"},
{"201060007","Wu"},
{"201060006","Zhou"},
{"201060010","Shen"},
{"201060008","Zhen"},
{"201060009","Jiang"}
};