In both MLA (p. 132, MLA Handbook, 7th ed.) and the APA Style Blog, you should treat the number as if it were spelled out (e.g., alphabetize "5" as if it were "Five").
Please contact one of our Librarians in person or through our Ask a Librarian if you have questions.