This is an emergent in a shallow pool(second photo) on top of the escarpment.
Growing in the centerline of a flat open drain in melaleuca/pandanus woodland, to about 400 mm length many plants flat on the grown probably pushed over by their own weight as standing water receded.
In shallow sandy forest trail pools