```dart
Future<void> fetchPostsInAscendingOrder() async {
  final posts = await Amplify.DataStore.query(
    Post.classType,
    sortBy: [Post.RATING.ascending()],
  );
  print('Posts: $posts');
}
```
