def preset_order(apps, schema_editor):
    """Set initial ordering of category list plugin categories."""
    SelectedCategory = apps.get_model('aldryn_faq', 'SelectedCategory')
    order = 0
    for obj in SelectedCategory.objects.all():
        order += 1
        obj.position = order
        obj.save()
