I think we just need to do a "Computed Sort" on the [Name] dimension. This can be done by right-clicking [Name] in the viz and selecting the Sort option:
Next we'll choose to sort by a Field, set the value to Amount and choose Sum as our aggregation. In this screenshot I put the sorting as Descending:
Now when we press OK the Names will be sorted based on the value of Amount:
Hope this helps!