syntax: Implement recursive sorting of meta items. Closes #607
auto merge of #4978 : z0w0/rust/issue-607, r=graydon