changed way the posts are collected for courses so that they will already be sorted by most recent date