sort changes its argument, if a Java array

Description

user> (let [a (to-array [32 11])]
(prn (seq a))
(sort a)
(prn (seq a)))
(32 11)
(11 32)
nil

Where the second line printed ought to be the same as the first.

Environment

java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (6b22-1.10.4-0ubuntu1~11.04.1)
(clojure-version)
"1.4.0-alpha2"

Status

Assignee

Unassigned

Reporter

import

Labels

None

Approval

Ok

Patch

Code

Fix versions

Affects versions

Release 1.4
Release 1.3

Priority

Minor
Configure