Fixed sidebar ordering, removed empty span for unversioned items