This should be simple, but I am running into problems. I'm trying to change the text of a button depending on whether the list is in descending or ascending order. This is what I have: 

> 
> In my view model: 
> 
> 
> 

```
fun ascendingDescending() {
    if (ascendingOrDescending == AscendDescend.ASC) {
        ascendingOrDescending = AscendDescend.DESC
        isAscend = false
    } else {
        ascendingOrDescending = AscendDescend.ASC
        isAscend = true
    }

    val searchAndSort = searchQuery.value
    searchAndSort?.ascendDescend = ascendingOrDescending
    searchQuery.postValue(searchAndSort)

}

```

> 
> In my .xml file: 
> 
> 
> 

```
    <com.google.android.material.button.MaterialButton
        android:id="@+id/btnAscendDescend"
        android:layout_width="0dp"
        android:layout_height="45dp"
        android:layout_marginTop="5dp"
        android:layout_marginEnd="10dp"
        android:backgroundTint="@color/colorPrimary"
        app:layout_constraintHorizontal_weight="1"
        app:layout_constraintEnd_toStartOf="@+id/btnFilterBy"
        app:layout_constraintStart_toEndOf="@+id/btnSortBy"
        app:layout_constraintTop_toBottomOf="@+id/guideline"
        app:layout_constraintHorizontal_chainStyle="spread"
        android:text="@{viewModel.isAscend ? @string/work_packages_descend : @string/work_packages_ascend}"
        android:onClick="@{() -> viewModel.ascendingDescending()}"
        />

```

When I click the button, the text is not changing from Descending to Ascending.