diff --git a/transaction.go b/transaction.go index bc33194..54b8a73 100644 --- a/transaction.go +++ b/transaction.go @@ -98,6 +98,9 @@ func (s *TransactionService) GetLightPageByLimit(ctx context.Context, pagenumber transaction.Time = time.Unix(transaction.Timestamp, 0) transaction.TimeDescription = humanize.Time(transaction.Time) + sort.Slice(transaction.Nft.TransactionHistory, func(i, j int) bool { + return transaction.Nft.TransactionHistory[i].Timestamp > transaction.Nft.TransactionHistory[j].Timestamp + }) } var res []Transaction