:- expects_dialect(lps). % bubble sort with relational data structure . maxTime(5). fluents location(_, _). actions swap(_,_,_,_). initially location(d, 1), location(c, 2), location(b, 3), location(a,4). if location(X, N1) at T1, N2 is N1 +1, location(Y, N2) at T1, Y@ ?- go(Timeline). */