Here's the code:
<?php wp_get_archives('type=postbypost&limit=10'); ?>
I was actually able to do what I wanted with the post from a category by putting "&order=asc" into the code, but when I do that with the wp_get_archives it doesn't seem to work. Here's the code I used that does what I want it to do with the categories.
$posts = get_posts('numberposts=10&order=asc&category='. $category->term_id);
foreach($posts as $post) :
I'm wondering if I could use the above code but call all the posts and not just the ones from that particular category.